package demo2;

public class Test1 {
    public static void main(String[] args) throws CloneNotSupportedException{
        Person p1 = new Person("张三", 12);
        Person p2 = new Person("李四", 7);

        System.out.println(p1);
        System.out.println(p2);

        Person p3 = new Person();

        p3 = (Person) p1.clone();
        System.out.println(p3);
    }
}
